package com.edu.chongdian.View;

import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;
import android.os.Bundle;
import com.edu.chongdian.R;
import com.edu.chongdian.viewmodels.LoginViewModel;
import com.edu.chongdian.databinding.ActivityLoginBinding;

public class LoginActivity extends AppCompatActivity {

    private LoginViewModel viewModel;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ActivityLoginBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_login);
        viewModel=new LoginViewModel(this,binding);
        binding.setViewModel(viewModel);
    }
}